package com.s7.compat.mvp;


public class PresenterFactory {

    public static <T extends BasePresenter> T creatPresenter(Class<T> tClass) {
        T t = null;
        try {
            t = tClass.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return t;
    }
}
